package com.yuecai.modules.yc_order;


import com.yuecai.modules.yc_order_goods.service.YcOrderGoodsService;
import com.yuecai.modules.yc_order_goods.service.dto.OrderGoodsDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/order-good")
public class OrderGoodController {


    @Autowired
    private YcOrderGoodsService ycOrderGoodsService;

    @GetMapping("/list")
    public ResponseEntity<Object> query(OrderGoodsDto dto){
        return ycOrderGoodsService.queryOrderGoods(dto);
    }

}